<?php

function show($status, $message = '',$data=[],$httpStatus=200)
{
    $result = [
        'status' => $status,
        'message' => $message,
        'result' => $data
    ];
    return json($result,$httpStatus);
}

function pwdEncryption(string $pwd): string
{
    return md5(config('app.pwd_salt') . $pwd);
}